#include "test.h"

namespace Test
{
    void testToken()
    {
        ScannerTest test("obj 12%3\rstream\n3.14\r\n");

        test.checkNext( stToken, "obj" );
        test.checkNext( stWhiteSpace, " " );
        test.checkNext( stToken, "12" );
        test.checkNext( stComment, "3" );
        test.checkNext( stEOL, "\r" );
        test.checkNext( stToken, "stream" );
        test.checkNext( stEOL, "\n" );
        test.checkNext( stToken, "3.14" );
        test.checkNext( stEOL, "\r\n" );
    }
}